package com.esunrising.esungsc.entity;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@ApiModel(description = "GSC账务凭证头")
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "t_api_pz")
public class FIGLAccountingDocument extends BaseEntity {

    @Id
    @Column(name = "ID")
    private String ID;

    @Column(name = "ABSTRACTS")
    private String abstracts;

    @Column(name = "ACCDOCCODE")
    private String accDocCode;

    @Column(name = "ACCDOCDATE")
    private String accDocDate;

    @Column(name = "ACCDOCTYPEID")
    private String accDocTypeID;

    @Column(name = "ACCMANAGERID")
    private String accManagerID;

    @Column(name = "ACCMANAGERNAME")
    private String accManagerName;

    @Column(name = "ACCORGID")
    private String accOrgID;

    @Column(name = "ACCPERIODCODE")
    private String accPeriodCode;

    @Column(name = "ACCPERIODID")
    private String accPeriodID;

    @Column(name = "AMOUNT")
    private Double amount;

    @Column(name = "DWBH")
    private String dwbh;

    @Column(name = "NUMBEROFATTCH")
    private Integer numberOfAttch;

    @Column(name = "APPROVERID")
    private String approverID;

    @Column(name = "APPROVERNAME")
    private String approverName;

    @Column(name = "AUDITOR")
    private String auditor;

    @Column(name = "AUDITORNAME")
    private String auditorName;

    @Column(name = "BOOKERID")
    private String bookerID;

    @Column(name = "BOOKERNAME")
    private String bookerName;

    @Column(name = "CASHIERID")
    private String cashierID;

    @Column(name = "CASHIERNAME")
    private String cashierName;

    @Column(name = "MAKERCODE")
    private String makerCode;

    @Column(name = "MAKERID")
    private String makerID;

    @Column(name = "MAKERNAME")
    private String makerName;

    @Column(name = "OPERATORID")
    private String operatorID;

    @Column(name = "OPERATORNAME")
    private String operatorName;

    @Column(name = "SOURCECLASS")
    private String sourceClass;

    @Column(name = "LEDGER")
    private String ledger;

    @Column(name = "YEAR")
    private String year;

    @Column(name = "ISAPPROVED")
    private String isApproved;

    @Column(name = "ISAUDIT")
    private String isAudit;

    @Column(name = "ISCOMPLETE")
    private String isComplete;

    @Column(name = "ISBOOK")
    private String isBook;

    @Column(name = "ISVOID")
    private String isVoid;

    @Column(name = "TIMESTAMP_CREATEDON")
    private LocalDateTime timestampCreatedOn;

    @Column(name = "TIMESTAMP_LASTCHANGEDON")
    private LocalDateTime timestampLastChangedOn;

}
